package Test;

public class Cylinder extends Circle{
    private double length;

    Cylinder(){
        this.length=1.0;
    }

    public void setLength(double length) {
        this.length = length;
    }

    public double getLength() {
        return length;
    }

    public double findAlength(){
        return 2*Math.PI*super.getRadius();
    }
    public double findAllarea(){
        double length_l=findAlength();
        return  2*super.findArea()+length_l*length;
    }

    public double findVolume(){
        return findArea()*length;
    }

}
